package com.huilian.iotbox.admin.service.impl;

import com.huilian.iotbox.admin.dao.MerchantBannerDao;
import com.huilian.iotbox.admin.service.MerchantBannerService;
import com.huilian.iotbox.data.dto.MerchantBannerDto;
import com.huilian.iotbox.data.vo.MerchantBannerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chenqiwen
 * @CreateDate: 2022-07-23-09-32
 * @Description:
 */
@Service
public class MerchantBannerServiceImpl implements MerchantBannerService {

    @Autowired
    MerchantBannerDao merchantBannerDao;

    @Override
    public List<MerchantBannerVo> findAllMerchantBannerByMerchantStoreId(MerchantBannerDto merchantBannerDto) {
        return merchantBannerDao.findAllMerchantBannerByMerchantStoreId(merchantBannerDto);
    }

    /**
     * 新增merchant_banner
     */
    @Override
    public Integer insertMerchantBanner(MerchantBannerDto merchantBannerDto) {
        Integer result = merchantBannerDao.insertMerchantBanner(merchantBannerDto);
        return result;
    }
}
